//
//  NSUserDefaults+FirstLaunch.m
//  meitui
//
//  Created by wilson on 13-10-14.
//  Copyright (c) 2013年 Maxicn. All rights reserved.
//

#import "NSUserDefaults+FirstLaunch.h"

static NSString * const kFirstLaunchKey = @"NSUserDefaultsFirstLaunch";

@implementation NSUserDefaults (FirstLaunch)


- (BOOL)isFirstLaunch{
    return ![self boolForKey:kFirstLaunchKey];
}

- (void)setFirstLaunch:(BOOL)flag{
    [self setBool:!flag forKey:kFirstLaunchKey];
    [self synchronize];
}


@end
